public class P2_Trycatch{
	public static void main(String args[]) {
		
		int arr[] = new int[4];
		try{
			System.out.println(arr[m()]);
		}
		catch (Exception e) { System.out.println(e.toString()); }//e
		
	}

	static int m(){
		return 4;
	}
}